Computing Termination Conditions of Iterative Programs
نویسندگان
چکیده
It is common to use invariant assertions to analyze functional properties of loops (such as partial correctness) and to use variant functions to analyze operational properties of loops (such as termination). In this paper, we explore an orthogonal approach, based on invariant relations, which enables us to reason about functional properties as well as termination in a uniform manner; also, our definition of termination encompasses not only the property that the loop executes a finite number of iterations, but also the property that every single iteration of the loop executes without raising an exception and/or causing an abort. We present a general theorem that provides a necessary condition of termination (in the sense of having a finite number of iterations, and in the sense of avoiding aborts), and discuss under what circumstances the given condition can be deemed sufficient, in addition to being provably necessary.
منابع مشابه
Computing the Matrix Geometric Mean of Two HPD Matrices: A Stable Iterative Method
A new iteration scheme for computing the sign of a matrix which has no pure imaginary eigenvalues is presented. Then, by applying a well-known identity in matrix functions theory, an algorithm for computing the geometric mean of two Hermitian positive definite matrices is constructed. Moreover, another efficient algorithm for this purpose is derived free from the computation of principal matrix...
متن کاملAbstraction-Based Interaction Model for Synthesis
ion-Based Interaction Model for Synthesis Hila Peleg, Shachar Itzhaky, and Sharon Shoham 1 Technion, {hilap,shachari}@cs.technion.ac.il 2 Tel Aviv University, [email protected] Abstract. Program synthesis is the problem of computing from a specification Program synthesis is the problem of computing from a specification a program that implements it. New and popular variations on the synthe...
متن کاملFinite Termination of Asynchronous Iterative Algorithms
We consider n-processor distributed systems where the ith processor executes asynchronously the iteration xi =fr(x). It is natural to terminate the iteration of the ith processor when some local condition, such as xi -f;(x): ‘small’, holds. However, local termination conditions of this type may not lead to global termination because of the asynchronous character of the algorithm. In this paper,...
متن کاملOn modular termination proofs of general logic programs
We propose a modular method for proving termination of general logic programs (i.e., logic programs with negation). It is based on the notion of acceptable programs, but it allows us to prove termination in a truly modular way. We consider programs consisting of a hierarchy of modules and supply a general result for proving termination by dealing with each module separately. For programs which ...
متن کاملCv of Dr. Jan-georg Smaus 1.1 Logic Programming
Verification of logic programs with dynamic scheduling. My first work in this area was on programs using delay declarations, in particular, proving termination and absence of runtime errors for such programs [5, 6, 1, 28, 33]. I have developed a more abstract view of dynamic scheduling by defining the so-called input-consuming derivations [8, 28, 32, 34]. More powerful termination conditions we...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2014